from django.conf.urls.defaults import patterns, include, url
from django.contrib import admin
from django.conf import settings
admin.autodiscover()

urlpatterns = patterns('',
#    url(r'^$', 'korvet.views.home', name='home'),
#    url(r'^korvet/', include('korvet.foo.urls')),
#    url(r'^admin/', include(admin.site.urls)),
    url(r'^admin_tools/', include('admin_tools.urls')),
    url(r'^washing/', include('washing.urls')),
    url(r'^shop/', include('shop.urls')),
    url(r'^', include(admin.site.urls)),
)

if settings.DEBUG:
    urlpatterns += patterns('',
        (r'_s_/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}),
        (r'^_/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
        (r'^favicon\.ico$', 'django.views.generic.simple.redirect_to', {'url': '/_s_/i/icon.ico'}),
    )